﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;

namespace Possan.Graphics.ConsoleDemo
{
	class Program
	{
		static void Main(string[] args)
		{
			Bitmap test1 = new Bitmap(200, 100);
			
			Possan.Graphics.Filters.SkinBackground sb = new Possan.Graphics.Filters.SkinBackground();
			sb.ImagePath = "data/SmallButton.png";
			sb.Left = 10;
			sb.Top = 10;
			sb.Right = 10;
			sb.Bottom = 10;
			test1 = sb.Filter(test1);
			
			test1.Save("output/test1.png", ImageFormat.Png);



			Bitmap test2 = (Bitmap)Image.FromFile("data/Icon.png");

			Possan.Graphics.Filters.Grayscale gf = new Possan.Graphics.Filters.Grayscale();
			test2 = gf.Filter(test2);

			Possan.Graphics.Filters.Levels lf = new Possan.Graphics.Filters.Levels();
			lf.OutputRedMin = 0x88;
			lf.OutputGreenMin = 0x88;
			lf.OutputBlueMin = 0x88;
			test2 = lf.Filter(test2);

			test2.Save("output/test2.png", ImageFormat.Png);





		}
	}
}
